E:/E+I/Informatik/Projekte/FH/n-Damen Problem/ndame.h

Go to the documentation of this file.
00001 
00009 #include <stdio.h>
00010 #include <stdlib.h>
00011 #include <conio.h> 
00012 #include <string.h>
00013 #include <time.h>
00014 
00015 #define MAX_SIZE 12                                   //max size of chessboard
00016 #define MIN_SIZE 4                                    //min size of chessboard
00017 #define X_POS 55                                      //chessboard position
00018 #define Y_POS 6                                       //chessboard position
00019 #define BOARD_PART_1 177                              //board ascii code1
00020 #define BOARD_PART_2 0                                //board ascii code2
00021 #define QUEEN 1                                       //queen ascii code
00022 
00023 enum mode
00024 {   
00025     automatic,
00026     manual
00027 };
00028 
00029 struct data
00030 {
00031     enum mode m1;                                     //singlestep
00032     int iblength;                                     //chessboard size
00033     int iboard[MAX_SIZE][MAX_SIZE];                   //chessboard array
00034     int isolutions;                                   //quantity of solutions
00035     int istep;                                        //jes,no(1 or 0)
00036     int isave;                                        //jes,no(1 or 0)
00037     int iauthor;                                      //text-file-header(0 or 1)
00038     float fcalctime;                                  //calculation time
00039     char cfilename[100];                              //filename array
00040     clock_t tstart;                                   //time start variable 
00041     clock_t tend;                                     //time end variable
00042 };

Generated on Sun Dec 18 19:26:13 2005 for n-Queens Problem by  doxygen 1.4.5